-- GENERATED SPELL FOR [Taskmaster Snivvle] --


function spell0_11677(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(16170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11677', 30340, 1)
end

function spell1_11677(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11677', 555, 1)
end

function spell2_11677(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11677', 618, 1)
end

function Sorts_11677(pUnit, Event)
local choix_sorts_11677 = math.random(0, 2)
if choix_sorts_11677 == 0 then
pUnit:RegisterEvent('spell0_11677', 1, 1)
end
if choix_sorts_11677 == 1 then
pUnit:RegisterEvent('spell1_11677', 1, 1)
end
if choix_sorts_11677 == 2 then
pUnit:RegisterEvent('spell2_11677', 1, 1)
end
end

function mob11677_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11677', math.random(1500, 3000), 1)
end

function mob11677_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11677_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11677_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11677, 1, 'mob11677_Action')
RegisterUnitEvent(11677, 2, 'mob11677_Leave')
RegisterUnitEvent(11677, 3, 'mob11677_Kill')
RegisterUnitEvent(11677, 4, 'mob11677_Die')
